﻿using Api.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Layans.Data;
using Api.ViewModels.Chat;
using Layans.Model;

namespace Api.Controllers.Chat
{
    public class ChatSearchController : Controller
    {
        //LayansContext layans = new LayansContext(); 
        ////
        //// GET: /ChatSearch/
        //public ActionResult Index()
        //{
        //    return View();
        //}

        //public ActionResult Search(string query)
        //{
        //    var chatresult = layans.ChatChanelAdds.Where(x => x.Name.ToLower().Contains(query.ToLower()))
        //        .Select(x => new ChatChanelViewModel
        //        {
        //            Name = x.Name,
        //            Description = x.Description,
        //        })
        //        .ToList();

        //    return PartialView("_ChatResult", chatresult);
        //}
	}
}